3.901 \(\int \frac{(d+e x)^2 \sqrt{f+g x}}{\sqrt{a+b x+c x^2}} \, dx\)

Optimal. Leaf size=567 \[ \frac{4 \sqrt{2} e \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} (2 b e g-5 c d g+c e f) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c e g (9 a e g+20 b d g+3 b e f)+8 b^2 e^2 g^2+c^2 \left (-\left (-15 d^2 g^2-10 d e f g+2 e^2 f^2\right )\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^2 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}+\frac{2 e \sqrt{f+g x} \sqrt{a+b x+c x^2} (-4 b e g+7 c d g+c e f)}{15 c^2 g}+\frac{2 e (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c} \]

[Out]

(2*e*(c*e*f + 7*c*d*g - 4*b*e*g)*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(15*c^2*g)
 + (2*e*(d + e*x)*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(5*c) + (Sqrt[2]*Sqrt[b^2
 - 4*a*c]*(8*b^2*e^2*g^2 - c*e*g*(3*b*e*f + 20*b*d*g + 9*a*e*g) - c^2*(2*e^2*f^2
 - 10*d*e*f*g - 15*d^2*g^2))*Sqrt[f + g*x]*Sqrt[-((c*(a + b*x + c*x^2))/(b^2 - 4
*a*c))]*EllipticE[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x)/Sqrt[b^2 - 4*a*c]]
/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)])/(15*c^
3*g^2*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[a + b*x + c*x
^2]) + (4*Sqrt[2]*Sqrt[b^2 - 4*a*c]*e*(c*e*f - 5*c*d*g + 2*b*e*g)*(c*f^2 - b*f*g
 + a*g^2)*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[-((c*(a +
 b*x + c*x^2))/(b^2 - 4*a*c))]*EllipticF[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*
c*x)/Sqrt[b^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^
2 - 4*a*c])*g)])/(15*c^3*g^2*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])

_______________________________________________________________________________________

Rubi [A]  time = 2.04747, antiderivative size = 567, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194 \[ \frac{4 \sqrt{2} e \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} (2 b e g-5 c d g+c e f) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c e g (9 a e g+20 b d g+3 b e f)+8 b^2 e^2 g^2+c^2 \left (-\left (-15 d^2 g^2-10 d e f g+2 e^2 f^2\right )\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^2 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}+\frac{2 e \sqrt{f+g x} \sqrt{a+b x+c x^2} (-4 b e g+7 c d g+c e f)}{15 c^2 g}+\frac{2 e (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c} \]

Antiderivative was successfully verified.

[In]  Int[((d + e*x)^2*Sqrt[f + g*x])/Sqrt[a + b*x + c*x^2],x]

[Out]

(2*e*(c*e*f + 7*c*d*g - 4*b*e*g)*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(15*c^2*g)
 + (2*e*(d + e*x)*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(5*c) + (Sqrt[2]*Sqrt[b^2
 - 4*a*c]*(8*b^2*e^2*g^2 - c*e*g*(3*b*e*f + 20*b*d*g + 9*a*e*g) - c^2*(2*e^2*f^2
 - 10*d*e*f*g - 15*d^2*g^2))*Sqrt[f + g*x]*Sqrt[-((c*(a + b*x + c*x^2))/(b^2 - 4
*a*c))]*EllipticE[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x)/Sqrt[b^2 - 4*a*c]]
/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)])/(15*c^
3*g^2*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[a + b*x + c*x
^2]) + (4*Sqrt[2]*Sqrt[b^2 - 4*a*c]*e*(c*e*f - 5*c*d*g + 2*b*e*g)*(c*f^2 - b*f*g
 + a*g^2)*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[-((c*(a +
 b*x + c*x^2))/(b^2 - 4*a*c))]*EllipticF[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*
c*x)/Sqrt[b^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^
2 - 4*a*c])*g)])/(15*c^3*g^2*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)**2*(g*x+f)**(1/2)/(c*x**2+b*x+a)**(1/2),x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [C]  time = 14.3334, size = 5536, normalized size = 9.76 \[ \text{Result too large to show} \]

Antiderivative was successfully verified.

[In]  Integrate[((d + e*x)^2*Sqrt[f + g*x])/Sqrt[a + b*x + c*x^2],x]

[Out]

Result too large to show

_______________________________________________________________________________________

Maple [B]  time = 0.065, size = 8248, normalized size = 14.6 \[ \text{output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)^2*(g*x+f)^(1/2)/(c*x^2+b*x+a)^(1/2),x)

[Out]

result too large to display

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (e x + d\right )}^{2} \sqrt{g x + f}}{\sqrt{c x^{2} + b x + a}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2*sqrt(g*x + f)/sqrt(c*x^2 + b*x + a),x, algorithm="maxima")

[Out]

integrate((e*x + d)^2*sqrt(g*x + f)/sqrt(c*x^2 + b*x + a), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (e^{2} x^{2} + 2 \, d e x + d^{2}\right )} \sqrt{g x + f}}{\sqrt{c x^{2} + b x + a}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2*sqrt(g*x + f)/sqrt(c*x^2 + b*x + a),x, algorithm="fricas")

[Out]

integral((e^2*x^2 + 2*d*e*x + d^2)*sqrt(g*x + f)/sqrt(c*x^2 + b*x + a), x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (d + e x\right )^{2} \sqrt{f + g x}}{\sqrt{a + b x + c x^{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)**2*(g*x+f)**(1/2)/(c*x**2+b*x+a)**(1/2),x)

[Out]

Integral((d + e*x)**2*sqrt(f + g*x)/sqrt(a + b*x + c*x**2), x)

_______________________________________________________________________________________

GIAC/XCAS [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2*sqrt(g*x + f)/sqrt(c*x^2 + b*x + a),x, algorithm="giac")

[Out]

Timed out